home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Internet Info 1994 March
/
Internet Info CD-ROM (Walnut Creek) (March 1994).iso
/
networking
/
ip
/
ka9q
/
alpha.arc
/
ATDUMP.C
< prev
next >
Wrap
C/C++ Source or Header
|
1987-12-22
|
462b
|
27 lines
#include <stdio.h>
#include "global.h"
#include "mbuf.h"
#include "mac_AT.h"
#include "trace.h"
at_dump(bpp)
struct mbuf **bpp;
{
struct appletalk ap;
char s[20],d[20];
ntohat(&ap,bpp);
pat(s,ap.source);
pat(d,ap.dest);
printf("AppleTalk: %s->%s type 0x%x len %u\r\n",s,d,ap.type,
APPLEADDRLEN + len_mbuf(*bpp));
switch(ap.type){
case AIP_TYPE:
ip_dump(bpp);
break;
case AARP_TYPE:
arp_dump(bpp);
break;
}
}